import { request } from '@ruifox-cms/utils'

// 获取素材库图片
export function getMaterial() {
    return request({
        url: '/content/getMaterial',
        method: 'get'
    })
}

// 获取素材库附件
export function getFilesMaterial() {
    return request({
        url: '/content/getFilesMaterial',
        method: 'get'
    })
}
// 获取上传地址
export function getUploadUrl() {
    return request({
        url: '/auth/system/getUploadUrl',
        method: 'get',
    })
}
// 内容排序
export function contentListOrder(data) {
    return request({
        url: '/content/listorder',
        method: 'post',
        data
    })
}
// 更新静态
export function refreshStatic() {
  return request({
      url: '/content/refreshStatic',
      method: 'post',
  })
}

// 网络图片生成
export function checkImages(data) {
    return request({
        url: '/content/imageUpload/checkImages',
        method: 'post',
        data
    })
}

